package com.ziki.bswicket.component;

import org.apache.wicket.model.IModel;

import com.ziki.bswicket.model.BsModel;
import com.ziki.framework.wicket.markup.html.form.FwTextField;

public class BsTextField<T> extends FwTextField<T> {
    private static final long serialVersionUID = 1L;

    public BsTextField(String id) {
        super(id);
    }

    public BsTextField(String id, IModel<T> model, Class<T> type) {
        super(id, model, type);
    }

    public BsTextField(String id, String value) {
        super(id);
        setValue(value);
    }

    public void setValue(String val) {
        setDefaultModel(new BsModel<String>(val));
    }

}
